import{axios} from'@/service/request.js'
import {ref,reactive,computed,watch} from 'vue'
export default (data)=>{
	const list=ref([])//gqge
	const details=ref({})
	const page=ref(1)
	const size=ref(10)
	
	const sumComputed = computed(()=>{
		return list.value.map(item=>{
			return item.status
		})
	})
	const getOrderDetail = async (url,params)=>{
		const __data = await axios(url,params)
		return __data
	}
	const getMyFlowMoney = async (url,params)=>{
		const __data = await axios(url,params)
		return __data
	}
	
	return {
		list,details,page,size,
		sumComputed,
		getOrderDetail,
		getMyFlowMoney
	}
}